#pragma once

#include "BitmapLayer.h"
#include "Spans.h"

namespace TrueText {

class SpansLayer : public BitmapLayer
{
public:
	SpansLayer();
	~SpansLayer();

	virtual void Render(const BitmapInfo& output) const;
	virtual std::auto_ptr<BitmapLayer> Clone() const;

	// Spans are stored by value (yes, you can modify spans via GetSpans() method)
	Spans& GetSpans() { return spans; }
private:
	Spans spans;
};

}